package com.feini.ktv.svc;

import com.podara.skeleton.database.generator.MyBatisCodeGenerator;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author zym
 * @date 2021/4/21 15:00
 */
@SpringBootApplication(
        scanBasePackages = {"com.feini", "com.podara"}
)
public class KtvApplication {

    public static void main(String[] args) {
        // phoenix
        SpringApplication.run(KtvApplication.class, args);

        // 生成实体类
//        generateEntity();
    }

    /**
     * 生成表实体
     */
    public static void generateEntity() {
        // 当前默认配置的是ali的数据库，如有需要请修改
        MyBatisCodeGenerator codeGenerator = new MyBatisCodeGenerator();
        codeGenerator
                .packageConfig()
                .setParent("com.feini.ktv.svc");
        codeGenerator.generate();
    }
}
